package cn.imvc.app.controllers.member;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import cn.imvc.app.entities.Address;
import cn.imvc.app.models.MemberAddressModel;
/**
 * 
 * @author wujx
 * @time 2016年7月21日
 *
 */
public class MemberAddressControllerImpl implements MemberAddressController {
	@Autowired
	private MemberAddressModel memberAddressModel;
	private int memberId;
	private List<Address> addresses;
	public String search() {
		// TODO Auto-generated method stub
		return null;
	}

	public String index() {
		addresses = memberAddressModel.findByMemberId(memberId);
		return "member-address/index";
	}

	public String show() {
		return "";
	}

	public String editNew() {
		// TODO Auto-generated method stub
		return null;
	}

	public String create() {
		// TODO Auto-generated method stub
		return null;
	}

	public String edit() {
		// TODO Auto-generated method stub
		return null;
	}

	public String update() {
		// TODO Auto-generated method stub
		return null;
	}

	public String destroy() {
		// TODO Auto-generated method stub
		return null;
	}

	public String destroyBatch() {
		// TODO Auto-generated method stub
		return null;
	}

	public int getMemberId() {
		return memberId;
	}

	public void setMemberId(int memberId) {
		this.memberId = memberId;
	}

	public List<Address> getAddresses() {
		return addresses;
	}

	public void setAddresses(List<Address> addresses) {
		this.addresses = addresses;
	}

}
